Skip to main content

Alternating Cams

See the PLCopenMultiCAM.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples.

This example demonstrates how a cam movement can be created with two alternating cams. The program is implemented in ST and executes the same actions as the "Cam Drive Control using a Virtual Time Axis" example. At the end of the first cam, the MC_CamIn function block sets the EndOfProfile output. In this way, the other curve table is assigned to MC_CamTableSelect and MC_CamIn is restarted.